package io.zbc.grow.arithmetic.business.question;

/**
 * @author zbc
 * @date 2022/12/24
 */
public class QuestionFactory {
    public IQuestion getQuestion(int questionType) {
        switch (questionType) {
            case QuestionType.add:
                return new Addition();
            case QuestionType.subtract:
                return new Subtraction();
            default:
                return null;
        }
    }
}
